﻿using System.Web.Mvc;

namespace MvcApplication7.Models
{
    public class Folder1Action1ViewModel
    {
        public readonly JsRenderer<HtmlHelper> JsRenderer = new JsRenderer<HtmlHelper>(delegate { });
        public readonly IScriptedViewInfo<Folder1Pv1ViewModel, Folder1Pv1RenderModel> Folder1Pv1ScriptedViewInfo;
        public readonly IScriptedViewInfo<Folder1Pv2ViewModel, Folder1Pv2RenderModel> Folder1Pv2ScriptedViewInfo2;

        public Folder1Action1ViewModel()
        {
            Folder1Pv1ScriptedViewInfo = JsRenderer.Add(
                ViewInfos.Folder1Pv1RenderViewInfo,
                (renderModel, html) => renderModel.JsRenderer.RenderJs(html));
            Folder1Pv2ScriptedViewInfo2 = JsRenderer.Add(
                ViewInfos.Folder1Pv2RenderViewInfo,
                (renderModel, html) => renderModel.JsRenderer.RenderJs(html));
        }
    }
}